<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<div id="user-form" class="user-form ui-widget ui-widget-content" style="border:0; background: transparent;margin-bottom:50px; font-size: 15px;">
    <div class="user-forme-button" style="margin: 0 auto 50px; text-align: center;">
            <input type="button" id="btn_add" name="add" value="Add New User">
    </div>
    <a name="user_form"></a>
    <div class="formedit" id="formedit" style="margin: 0 auto; display: none;">
        <fieldset>
            <div style="color: red; display: none;" id="admin-error"></div>
            <span class="wauto" style="font-style: italic;">NOTE: All fields are required.</span>
            <form id="frm_user" method="POST" action="<?php echo site_url('admin/register');?>">
                <input type="hidden" name="id" class="tbedit" value="">
                <div id="permission">
                    <span class="w150px">Permission:</span>
                    <select name="permission">
                        <option value="2" selected="">User</option>
                        <option value="1">Admin</option>
                      </select>
                </div>
                
                <div id="dv-store_name">
                    <span class="w150px">Store Name:</span>
                    <input type="text" name="store_name" value="" class="tbedit"><br />
                </div>
                <div id="dv-account_name">
                    <span class="w150px">Account Name:</span>
                    <input type="text" name="account_name" value="" class="tbedit"><br />
                </div>
                <span class="w150px">Email:</span>
                <input type="text" name="email" value="" class="tbedit"><br />

                <span class="w150px">Password</span>
                <input type="password" name="password" value="" class="tbedit"><br />

                <span class="w150px">Last Name:</span>
                <input type="text" name="lname" value="" class="tbedit"><br>
                <span class="w150px">First Name:</span>
                <input type="text" name="fname" value="" class="tbedit">
                <div id="status">
                    <span class="w150px">Status:</span>
                    <select name="status">
                        <?php foreach ($_status as $k => $v):?>
                        <option value="<?php echo $k?>"><?php echo $v?></option>
                        <?php endforeach;?>
                    </select>
                </div>
                <div id="starttime" style="display:none;">
                    <span class="w150px">User time:</span>
                    <select name="shr">
                        <?php for($i=0; $i<24; $i++):?>
                        <option value="<?php echo $i;?>" ><?php echo ($i<10)?'0'.$i:$i;?></option>
                        <?php endfor; ?>
                    </select>:<select name="smin">
                        <?php for($i=0; $i<60; $i++):?>
                        <option value="<?php echo $i;?>" ><?php echo ($i<10)?'0'.$i:$i;?></option>
                        <?php endfor; ?>
                    </select> to 
                    <select name="ehr">
                        <?php for($i=0; $i<24; $i++):?>
                        <option value="<?php echo $i;?>" ><?php echo ($i<10)?'0'.$i:$i;?></option>
                        <?php endfor; ?>
                    </select>:<select name="emin">
                        <?php for($i=0; $i<60; $i++):?>
                        <option value="<?php echo $i;?>" ><?php echo ($i<10)?'0'.$i:$i;?></option>
                        <?php endfor; ?>
                    </select>

                </div>
                <br><br>
                <input type="submit" value="Submit">&nbsp;
                <input type="reset" id="btn_cancel" value="Cancel">
            </form>
        </fieldset>
    </div>
</div>